<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../basePath.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>会员信息列表</title>
</head>
<body>
	<a href="member/show" target="_self">添加会员</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="logout" target="_self">注销</a>
	<table>
		<tr>
			<th>id</th>
			<th>name</th>
			<th>age</th>
			<th>createDate</th>
			<th>updateDate</th>
			<th>file</th>
			<th>operator</th>
		</tr>
		<c:forEach items="${list }" var="m">
			<tr>
				<td><c:out value="${m.id }" /></td>
				<td><c:out value="${m.name }" /></td>
				<td><c:out value="${m.age }" /></td>
				<td>
					<fmt:formatDate value="${m.createDate }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${m.updateDate }" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<c:if test="${!empty m.filePath }">
						<a href="file/download?filePath=${m.filePath }" >下载</a>&nbsp;&nbsp;
						<a href="file/show?filePath=${m.filePath }" >展示</a>
					</c:if>
				</td>
				<td><a href="member/show?id=${m.id }">编辑</a>&nbsp;&nbsp;
				<a href="member/delete?id=${m.id }">删除</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>